Executes a query in a scope, so the loaded entities are pinned to the scope (marked as needed) by calling AddRef(Object) for each of them.

Namespace:  C1.Data
Assembly:  C1.Silverlight.Data.Entity (in C1.Silverlight.Data.Entity.dll)

Syntax

C#
public static LoadOperation<T> ExecuteIn<T>(
	this EntityQuery<T> query,
	RiaClientScope scope
)
where T : Entity
Visual Basic
<ExtensionAttribute> _
Public Shared Function ExecuteIn(Of T As Entity) ( _
	query As EntityQuery(Of T), _
	scope As RiaClientScope _
) As LoadOperation(Of T)

Parameters

query
Type: EntityQuery<(Of <(<'T>)>)>
The query to execute inside the scope.
scope
Type: C1.Silverlight.Data.RiaServices..::..RiaClientScope
The client scope to execute the query in.

Type Parameters

T
The type of the item in the query.

Return Value

The LoadOperation object representing the execution of the query.

See Also